/* 公共请求 */
import { request } from './request'


/* 获取树节点 */
export function _login (uName, password, vCode) {
    return request({
        url: '/user/login',
        params: {
            username: uName,
            password: password,
            vCode: vCode
        }
    })
}


/* 获取验证码 */
export function _getCode (url) {
    return request({
        url: url
    })
}


/* 获取所有用户 */
export function _getAllUser () {
    return request({
        url: '/user/getAllUser',
    })
}

/* 删除用户 */
export function _delUser (userId) {
    return request({
        url: '/user/delUser',
        params: {
            userId: userId
        }
    })
}


/* 增加用户 */
export function _addUser (userName,password) {
    return request({
        url: '/user/addUser',
        params: {
            userName: userName,
            password: password
        }
    })
}
